﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FinanSoft.Entities
{
    public class Company
    {

        #region Attributes
        private String _name;
        private String _legalId;
        private String _phone;
        private String _fax;
        private Byte[] _logo;
        private double _dividendPercentage;
        private double _taxPercentage;
        #endregion

        #region Properties
        public String Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }

        public String LegalId
        {
            get
            {
                return _legalId;
            }
        }

        public String Phone
        {
            get
            {
                return _phone;
            }
            set
            {
                _phone = value;
            }
        }

        public String Fax
        {
            get
            {
                return _fax;
            }
            set
            {
                _phone = _fax;
            }
        }

        public Byte[] Logo
        {
            get
            {
                return _logo;
            }
        }

        public double DividendPercentage
        {
            get
            {
                return _dividendPercentage;
            }
        }

        public double TaxPercentage
        {
            get
            {
                return _taxPercentage;
            }
        }
        #endregion

        #region Constructor
        /// <summary>
        /// 
        /// </summary>
        /// <param name="name"></param>
        /// <param name="legalId"></param>
        /// <param name="phone"></param>
        /// <param name="fax"></param>
        /// <param name="logo"></param>
        /// <param name="dividendPercentage">Este es un número entre 0 y 100, inclusive</param>
        /// <param name="taxPercentage">Este es un número entre 0 y 100, inclusive</param>
        public Company(String name, String legalId, String phone, String fax, Byte[] logo, double dividendPercentage, double taxPercentage)
        {
            _name = name;
            _legalId = legalId;
            _phone = phone;
            _fax = fax;
            _logo = logo;
            _dividendPercentage = dividendPercentage;
            _taxPercentage = taxPercentage;
        }
        #endregion
    }
}
